package com.spyx.order.service;

import com.atyx.spyx.model.order.OrderInfo;
import com.atyx.spyx.vo.order.OrderConfirmVo;
import com.atyx.spyx.vo.order.OrderSubmitVo;
import com.atyx.spyx.vo.order.OrderUserQueryVo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

public interface OrderService extends IService<OrderInfo> {
    OrderConfirmVo confirmOrder(Long userId);

    Long submitOrder(OrderSubmitVo orderSubmitVo);

    OrderInfo getOrderInfoById(Long orderId);

    OrderInfo getOrderInfoByOrderNo(String orderNo);

    void updateOrderStatus(String orderNo);

    IPage<OrderInfo> findUserOrderPage(Page page1, OrderUserQueryVo queryVo);
}
